package com.siemens.industrial.app;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

/**
 * Created by David on 2016/10/13.
 */
public class HeartJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("Begin heart beat job! >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");

        HeartBeat heartBeat = new HeartBeat();
        boolean success = heartBeat.beat();

        System.out.println("heart beat " + success + " at time " + (new Date()).toString());
    }
}
